<?php
class Staticizer_News_Class extends Staticizer
{
    public function Build($param=NULL)
    {
        #获取数据
        $data=DB::GetRows('select Name,Identifying from news_class where Identifying_Parent is NULL order by ID asc');
        
        #渲染模板       
        View::Assign('News_Classes',$data);
        
        #生成静态
        $this->Save('news/public.class.html',View::Fetch('news/public.class.tpl'));
    }
}
?>